package com.java4_12;
/*
* 测试类
* */
public class PersonDemo {
    public static void main(String[] args) {
        // 创建篮球教练对象
        BasketballCoach bp = new BasketballCoach();
        bp.setName("李四");
        bp.setAge(30);
        System.out.println(bp.getName() + "," + bp.getAge());
        bp.eat();
        bp.teach();
        // 创建对象
        PingPangPlayer ppp = new PingPangPlayer();
        ppp.setName("张三");
        ppp.setAge(18);
        System.out.println(ppp.getName() + "," + ppp.getAge());
        ppp.eat();
        ppp.study();
        ppp.speak();
    }
}
